/**
 * FileName: RestoreMapper
 * Author:   秋水浮萍
 * Date:     2020/8/29 19:30
 * Description: 债权基本信息的恢复
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.demo.mapper;

import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * 〈一句话功能简述〉<br>
 * 〈债权基本信息的恢复〉
 *
 * @author 秋水浮萍
 * @create 2020/8/29
 * @since 1.0.0
 */
@Repository
public interface RestoreMapper {

    //债权基本信息 恢复
    @Update("update bus_claims set disabled=0 where claims_number=#{claimsNumber}")
    Integer restoreClaims(String claimsNumber);

    //借款合同 恢复
    @Update("update bus_claims_borrow set disabled=0 where borrow_id=#{borrowId}")
    Integer restoreBorrow(String borrowId);

    //保证合同 恢复
    @Update("update bus_claims_guarantor set disabled=0 where guarantor_id=#{guarantorId}")
    Integer restoreGuarantor(String guarantorId);

    //抵质押合同 恢复
    @Update("update bus_collateral_contract set disabled=0 where contract_id=#{contractId}")
    Integer restoreContract(String contractId);

    //抵质押物基本信息 恢复
    @Update("update bus_claims_collateral set disabled=0 where collateral_id=#{collateralId}")
    Integer restoreCollateral(String collateralId);

    //亮点 恢复
    @Update("update bus_claims_light set disabled=0 where light_id=#{lightId}")
    Integer restoreLight(String lightId);

    //房产 恢复
    @Update("update bus_collateral_property set disabled=0 where property_id=#{propertyId}")
    Integer restoreProperty(String propertyId);

    //土地 恢复
    @Update("update bus_collateral_land set disabled=0 where land_id=#{landId}")
    Integer restoreLand(String landId);

    //其他 恢复
    @Update("update bus_collateral_other set disabled=0 where other_id=#{otherId}")
    Integer restoreOther(String otherId);

    @Update("update bus_packages set disabled=0 where package_id=#{packageId}")
    Integer restorePackage(String packageId);
}
